package com.extrace.server.mapstruct;

import com.extrace.server.dto.TranspackageDTO;
import com.extrace.server.pojo.Transpackage;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2024-04-25
 * Time: 9:23
 */
@Mapper
public interface TranspackageConvert {
    TranspackageConvert INSTANCE = Mappers.getMapper(TranspackageConvert.class);


    TranspackageDTO po2dto(Transpackage transpackage);

    List<TranspackageDTO> pos2dtos(List<Transpackage> transpackages);
}
